package com.tjdr.his.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @AUTHOR 尹书岿
 * @DATE 2024/10/10 10:06
 * @DESCRIBE 处方信息
 */
@Data
@NoArgsConstructor
//@AllArgsConstructon
@TableName("prescription")
public class Prescription {
    /**
     * 处方编号
     */
    private Integer id;
    /**
     * 病历id
     */
    @TableField("register_id")
    private Integer registerId;
    /**
     * 药品id
     */
    @TableField("drug_id")
    private Integer drugId;
    /**
     * 用法用量频次
     */
    @TableField("drug_usage")
    private String drugUsage;
    /**
     * 数量
     */
    @TableField("drug_number")
    private Integer drugNumber;
    /**
     * 开立时间
     */
    @TableField("creation_time")
    private Date creationTime;
    /**
     * 状态
     */
    @TableField("drug_state")
    private Integer drugState;


    public Prescription(Integer id, Integer registerId, Integer drugId, String drugUsage, Integer drugNumber, Date creationTime, Integer drugState) {
        this.id = id;
        this.registerId = registerId;
        this.drugId = drugId;
        this.drugUsage = drugUsage;
        this.drugNumber = drugNumber;
        this.creationTime = creationTime;
        this.drugState = drugState;
    }
}
